//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopActivityGroupon, MinishopActivityGrouponResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopActivityGrouponList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopActivityGrouponResponse>(`/uctoo/minishop_activity_groupon/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopActivityGroupon = async (id: string) => {
  return requestClient.get<MinishopActivityGroupon>(`/uctoo/minishop_activity_groupon/${id}`);
};

export const adductooMinishopActivityGroupon = async (data: Partial<MinishopActivityGroupon>) => {
  return requestClient.post<MinishopActivityGroupon>('/uctoo/minishop_activity_groupon/add', data);
};

export const edituctooMinishopActivityGroupon = async (data: Partial<MinishopActivityGroupon>) => {
  return requestClient.post<MinishopActivityGroupon>('/uctoo/minishop_activity_groupon/edit', data);
};

export const deleteuctooMinishopActivityGroupon = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_activity_groupon/del', { id });
};
